import 'package:flutter/material.dart';
import 'package:flutter_shop/pages/home/home_tab_page/entity/home_content_data.dart';
import 'package:flutter_shop/utils/utils.dart';
import 'package:flutter_shop/widget/load_image.dart';

///楼层标题图片
class FloorTitlePic extends StatelessWidget {
  final HomeContentDataFloorPic titlePic;

  FloorTitlePic({Key key, this.titlePic}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      child: InkWell(
        onTap: () {
          Utils.showToast(titlePic.toPlace);
        },
        child: LoadImage(titlePic.pictureAddress),
      ),
    );
  }
}
